package com.mygdx.game.Scenes;

import com.mygdx.game.Stage.Fight.Fighter;

public class Character_green extends Fighter {
    public Character_green() {
        super("Character/GreenNPCFight");
    }
    @Override
    public void roundAction() {
        System.out.println("敌人回合结束动作");
    }

    @Override
    public void action1() {
        System.out.println("卡牌-敌人动作1");
        new Thread(){
            @Override
            public void run() {
                for (int i=0;i<3;i++){
                    for (int j=0;j<30;j++){
                        y=y+2;
                        setPosition(x,y);
                        try {
                            sleep(1);
                        }catch (Exception e){

                        }
                    }
                    for (int j=0;j<30;j++){
                        y=y-2;
                        setPosition(x,y);
                        try {
                            sleep(1);
                        }catch (Exception e){

                        }
                    }
                }
            }
        }.start();
    }
}

